<template>
  <div class="resources-page">
    <el-card class="page-header">
      <template #header>
        <div class="card-header">
          <h1>学习资源</h1>
        </div>
      </template>
      <p>这里提供了丰富的算法学习资源，帮助你深入理解各种算法。</p>
    </el-card>

    <el-row :gutter="20">
      <el-col :span="8">
        <el-card class="resource-card">
          <template #header>
            <div class="card-header">
              <h2>在线教程</h2>
              <el-icon><Reading /></el-icon>
            </div>
          </template>
          <el-empty description="资源整理中，敬请期待...">
            <template #image>
              <el-icon :size="40"><Document /></el-icon>
            </template>
          </el-empty>
        </el-card>
      </el-col>

      <el-col :span="8">
        <el-card class="resource-card">
          <template #header>
            <div class="card-header">
              <h2>推荐书籍</h2>
              <el-icon><Collection /></el-icon>
            </div>
          </template>
          <el-empty description="资源整理中，敬请期待...">
            <template #image>
              <el-icon :size="40"><Document /></el-icon>
            </template>
          </el-empty>
        </el-card>
      </el-col>

      <el-col :span="8">
        <el-card class="resource-card">
          <template #header>
            <div class="card-header">
              <h2>视频教程</h2>
              <el-icon><VideoPlay /></el-icon>
            </div>
          </template>
          <el-empty description="资源整理中，敬请期待...">
            <template #image>
              <el-icon :size="40"><Document /></el-icon>
            </template>
          </el-empty>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { Reading, Collection, VideoPlay, Document } from '@element-plus/icons-vue'

export default {
  name: 'Resources',
  components: {
    Reading,
    Collection,
    VideoPlay,
    Document
  }
}
</script>

<style scoped>
.resources-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h1 {
  margin: 0;
  font-size: 1.5em;
  color: #2c3e50;
}

.card-header h2 {
  margin: 0;
  font-size: 1.2em;
  color: #2c3e50;
}

.resource-card {
  height: 100%;
  margin-bottom: 20px;
}

:deep(.el-card__body) {
  padding: 20px;
}

:deep(.el-empty) {
  padding: 30px 0;
}

:deep(.el-icon) {
  color: #909399;
}

.el-row {
  margin: -10px;
}

.el-col {
  padding: 10px;
}
</style> 